package com.ruoyi.common.enums;

public enum TankStatusEnums {
    NOT_START(0,"未生产"), QH(1,"前混"), HH(2,"后混");
    private String value;
    private int key;
    private TankStatusEnums(int key,String value) {
        this.value = value;
        this.key = key;
    }
    public String getValue() {
        return value;
    }
    public int getKey() {
        return key;
    }
    public static String getValueByKey(int key) {
        for (TankStatusEnums c : TankStatusEnums.values()) {
            if (c.getKey() == key) {
                return c.getValue();
            }
        }
        return null;
    }

}
